// 数值裁剪的样式，可以防止在浏览器复制数值
.num {
  display: inline-block;
  line-height: 1;
  font-family: system-ui;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  -webkit-text-fill-color: transparent;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
  }
  &:empty::after {
    content: "0";
  }
}
.num0::before {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    60% 100%,
    60% 20%,
    40% 20%,
    40% 80%,
    calc(60% - 0.01px) 80%,
    calc(60% - 0.01px) 100%,
    0% 100%
  );
}
.num1 {
  text-indent: -0.25em;
}
.num2::before,
.num5::before {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 60%,
    50% 60%,
    50% 80%,
    100% 80%,
    100% 100%,
    0 100%,
    0% 40%,
    50% 40%,
    50% 20%,
    0% 20%
  );
}
.num3::before {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0% 100%,
    0% 80%,
    50% 80%,
    50% 60%,
    0% 60%,
    0% 40%,
    50% 40%,
    50% 20%,
    0% 20%
  );
}
.num4::before {
  clip-path: polygon(
    0 0,
    40% 0,
    40% 50%,
    calc(100% - 40%) 50%,
    calc(100% - 40%) 0%,
    100% 0%,
    100% 100%,
    calc(100% - 40%) 100%,
    calc(100% - 40%) 70%,
    0% 70%
  );
}
.num5::before {
  transform: scaleX(-1);
}
.num6::before,
.num9::before {
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 20%,
    calc(40% - 0.01px) 20%,
    calc(40% - 0.01px) 80%,
    calc(100% - 40%) 80%,
    calc(100% - 40%) 60%,
    40% 60%,
    40% 40%,
    100% 40%,
    100% 100%,
    0% 100%
  );
}
.num7::before {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 100%, 50% 20%, 0% 20%);
}
.num8::before {
  clip-path: polygon(
    0% 0%,
    calc(40% - 0.01px) 0%,
    calc(40% - 0.01px) 40%,
    60% 40%,
    60% 20%,
    40% 20%,
    40% 0%,
    100% 0%,
    100% 100%,
    40% 100%,
    40% 80%,
    60% 80%,
    60% 60%,
    calc(40% - 0.01px) 60%,
    calc(40% - 0.01px) 100%,
    0% 100%
  );
}
.num9::before {
  transform: scale(-1);
}

@supports not (inset: 0) {
  .num::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
}

// html method
//<span class="num num1">1</span>
//<span class="num num2">2</span>

// 26个英文字符
.letter {
  color: #2486ff;
  border-style: solid;
  border-width: 0.5em;
  display: inline-block;
  position: relative;
}
.letter:after {
  border-style: solid;
  border-width: 0.5em;
  content: "";
  position: absolute;
}

/* 鍗曚釜瀛楁瘝鏍峰紡 */
.letter[data-char="A"] {
  border-bottom: none;
  border-radius: 1em 1em 0 0;
  height: 2.05em;
  margin-top: -0.05em;
  width: 1em;
}
.letter[data-char="A"]:after {
  border-bottom: none;
  border-left: none;
  border-right: none;
  left: 0;
  right: 0;
  top: 0.75em;
}
.letter[data-char="B"] {
  border-radius: 0 1em 1em 0;
  height: 0.5em;
  width: 1em;
}
.letter[data-char="B"]:after {
  border-radius: 0 1em 1em 0;
  bottom: 100%;
  height: 0.5em;
  left: -0.5em;
  width: 0.9em;
}
.letter[data-char="C"] {
  border-right: none;
  border-radius: 1em 0 0 1em;
  height: 1.5em;
  width: 1.5em;
}
.letter[data-char="C"]:after {
  border-bottom: none;
  border-left: none;
  border-top: none;
  height: 0.5em;
  right: 0;
  top: 0;
  width: 0.5em;
}
.letter[data-char="D"] {
  border-radius: 0 1em 1em 0;
  height: 1.5em;
  width: 1em;
}
.letter[data-char="D"]:after {
  border: none;
}
.letter[data-char="E"] {
  border-right: none;
  height: 1.5em;
  width: 1.5em;
}
.letter[data-char="E"]:after {
  border-bottom: none;
  left: 0;
  right: 0.5em;
  top: 0.5em;
}
.letter[data-char="F"] {
  border-bottom: none;
  border-right: none;
  height: 2em;
  width: 1.5em;
}
.letter[data-char="F"]:after {
  border-bottom: none;
  left: 0;
  right: 0.5em;
  top: 0.5em;
}
.letter[data-char="G"] {
  border-right: none;
  border-radius: 1em 0 0 1em;
  height: 1.5em;
  width: 1.5em;
}
.letter[data-char="G"]:after {
  border-bottom: none;
  border-left: none;
  border-top: none;
  bottom: 0;
  height: 0.5em;
  right: 0;
  width: 0.5em;
}
.letter[data-char="H"] {
  border-bottom: none;
  border-top: none;
  height: 2.5em;
  width: 1em;
}
.letter[data-char="H"]:after {
  border-bottom: none;
  left: 0;
  right: 0;
  top: 1em;
}
.letter[data-char="I"] {
  border-left: none;
  border-right: none;
  height: 1.5em;
  width: 1.5em;
}
.letter[data-char="I"]:after {
  border-bottom: none;
  border-left: none;
  border-top: none;
  bottom: 0;
  left: 0.5em;
  top: 0;
  width: 0;
}
.letter[data-char="J"] {
  border-left: none;
  border-top: none;
  border-radius: 0 0 1em 0;
  height: 2em;
  width: 1.5em;
}
.letter[data-char="J"]:after {
  border-bottom: none;
  border-right: none;
  border-top: none;
  bottom: 0;
  height: 0.5em;
  left: 0;
  width: 0.5em;
}
.letter[data-char="K"] {
  border-bottom: 0;
  border-radius: 0 1em 0 0;
  height: 1em;
  width: 1em;
}
.letter[data-char="K"]:after {
  border-top: none;
  border-radius: 0 0 1em 0;
  bottom: 100%;
  height: 1em;
  left: -0.5em;
  width: 0.9em;
}
.letter[data-char="L"] {
  border-right: none;
  border-top: none;
  height: 2em;
  width: 1.5em;
}
.letter[data-char="L"]:after {
  border: none;
}
.letter[data-char="M"] {
  border-bottom: none;
  border-radius: 1em 1em 0 0;
  height: 2.05em;
  margin-right: 1.25em;
  margin-top: -0.05em;
  width: 0.75em;
}
.letter[data-char="M"]:after {
  border-bottom: none;
  border-radius: 1em 1em 0 0;
  height: 2.05em;
  left: 0.75em;
  top: -0.5em;
  width: 0.75em;
}
.letter[data-char="N"] {
  border-bottom: none;
  border-radius: 0 1em 0 0;
  height: 2em;
  width: 1em;
}
.letter[data-char="N"]:after {
  border: none;
}
.letter[data-char="O"] {
  border-radius: 1em;
  height: 1.6em;
  margin-bottom: -0.05em;
  margin-top: -0.05em;
  width: 1.25em;
}
.letter[data-char="O"]:after {
  border: none;
}
.letter[data-char="P"] {
  border-bottom: none;
  border-right: none;
  border-top: none;
  height: 1em;
  width: 1.5em;
}
.letter[data-char="P"]:after {
  border-radius: 0 1em 1em 0;
  bottom: 100%;
  height: 0.5em;
  left: -0.5em;
  width: 1em;
}
.letter[data-char="Q"] {
  border-radius: 1em 1em 0 1em;
  height: 1.55em;
  margin-top: -0.05em;
  width: 1.25em;
}
.letter[data-char="Q"]:after {
  border-radius: 0.5em 0 0 0;
  bottom: -0.5em;
  right: -0.5em;
}
.letter[data-char="R"] {
  border-bottom: none;
  border-radius: 0 1em 0 0;
  height: 1em;
  width: 1em;
}
.letter[data-char="R"]:after {
  border-radius: 0 1em 1em 0;
  bottom: 100%;
  height: 0.5em;
  left: -0.5em;
  width: 1em;
}
.letter[data-char="S"] {
  border-left: none;
  border-top: none;
  border-radius: 1em 0.5em 1em 0;
  height: 1em;
  margin-right: -0.05em;
  width: 1.5em;
}
.letter[data-char="S"]:after {
  border-bottom: none;
  border-right: none;
  border-radius: 1em 0 1em 0.5em;
  height: 1em;
  right: -0.4em;
  top: -1em;
  width: 1.4em;
}
.letter[data-char="S"]:before {
  border-color: inherit;
  border-style: solid;
  border-width: 0.5em;
  border-bottom: none;
  border-left: none;
  border-right: none;
  content: "";
  height: 0;
  left: 0.5em;
  position: absolute;
  width: 1em;
}
.letter[data-char="T"] {
  border-bottom: none;
  border-left: none;
  border-right: none;
  height: 2em;
  width: 2em;
}
.letter[data-char="T"]:after {
  border-bottom: none;
  border-left: none;
  border-top: none;
  bottom: 0;
  left: 0.75em;
  top: 0;
  width: 0;
}
.letter[data-char="U"] {
  border-top: none;
  border-radius: 0 0 1em 1em;
  height: 2.05em;
  margin-bottom: -0.05em;
  width: 1em;
}
.letter[data-char="U"]:after {
  border: none;
}
.letter[data-char="V"] {
  border-top: none;
  border-radius: 0 0 1em 0;
  width: 1em;
  height: 2em;
}
.letter[data-char="V"]:after {
  border: none;
}
.letter[data-char="W"] {
  border-top: none;
  border-radius: 0 0 1em 1em;
  height: 2.05em;
  margin-bottom: -0.05em;
  margin-right: 1.25em;
  width: 0.75em;
}
.letter[data-char="W"]:after {
  border-top: none;
  border-radius: 0 0 1em 1em;
  height: 2.05em;
  left: 0.75em;
  top: 0em;
  width: 0.75em;
}
.letter[data-char="X"] {
  border-bottom: none;
  border-radius: 1em 1em 0 0;
  height: 1em;
  width: 1em;
}
.letter[data-char="X"]:after {
  border-top: none;
  border-radius: 0 0 1em 1em;
  height: 1em;
  left: -0.5em;
  top: -1.5em;
  width: 1em;
}
.letter[data-char="Y"] {
  border-top: none;
  border-radius: 0 0 1em 1em;
  height: 1em;
  margin-bottom: 1em;
  width: 1em;
}
.letter[data-char="Y"]:after {
  border-bottom: none;
  border-left: none;
  border-top: none;
  bottom: -1.5em;
  left: 0.25em;
  top: 1em;
  width: 0;
}
.letter[data-char="Z"] {
  border-left: none;
  border-right: none;
  height: 1.5em;
  width: 2em;
}
.letter[data-char="Z"]:after {
  border-bottom: none;
  border-right: none;
  border-top: none;
  height: 2.5em;
  left: 0.75em;
  top: -0.5em;
  width: 0;
  -ms-transform: rotate(41.5deg);
  transform: rotate(41.5deg);
}
